from tkinter import *
print('введите x')
x = int(input())
print('введите y')
y = int(input())
print('введите n')
n = int(input())

root =Tk()
root.geometry('500x500')
if n == 500

canvas = Canvas (bg="white", width= 500,height=500)
canvas.pack(anchor=CENTER,expand=1)

canvas.create_rectangle(x * n ,y * n, (x+10)*n,(y+10)*n  ,fill = 'green',outline= 'black')
canvas.create_rectangle(x * n , (y+10)*n , (x+10)*n , (y+20)*n ,fill = 'green',outline= 'black')
canvas.create_rectangle((x+10) * n , (y+10)*n , (x+20)*n , (y+20)*n ,fill = 'green',outline= 'black')
canvas.create_rectangle(x * n , (y+30)*n , (x+10)*n , (y+20)*n ,fill = 'green',outline= 'black')

root.mainloop()